<template>
	<view class="tar-panel">
		<view class="header">
			<text class="title">{{title}}</text>
			<text class="sub-title">{{subTitle}}</text>
		</view>
		<view class="main">
			<slot/>
		</view>
		<view class="footer"></view>
	</view>
</template>
<script>
	export default {
		data() {
			return {

			}
		},
		props: {
			title: {
				type: String
			},
			subTitle: {
				type: String
			}
		}
	}
</script>
<style lang="scss" scoped>
	.tar-panel {
		background: #fff;

		.header {
			display: flex;
			height: 2.5rem;
			align-items: center;
			padding: 0 .5rem;
			.title {
				flex: 1;
				color: #666;
			}

			.sub-title {
				font-size: .8rem;
				color: #999;
			}
		}
	}
</style>